package cn.loan.service.impl;

import cn.loan.dao.EducationMapper;
import cn.loan.entity.Education;
import cn.loan.service.EducationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.List;

/**
 * @Author: 毛苏宇
 * @Description: You can do it!
 * @Date: Create in 11:20 2019/4/21
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class EducationServiceImpl implements EducationService {


    @Autowired
    private EducationMapper educationMapper;

    @Override
    public List<Education> getAll() {
        return educationMapper.findAll();
    }

    @Override
    public Education getEduById(int education_id) {
        return educationMapper.findEduById(education_id);
    }

    @Override
    public int getMinId() {
        return educationMapper.findMinId();
    }


}
